package com.good.shopping.product.feign;


import com.good.common.base.ServiceConstant;
import com.good.common.to.es.SkuEsModel;
import com.good.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yan
 */
@FeignClient(value = ServiceConstant.SERVICE_SEARCH_NAME)
public interface SearchFeignService {

    // 调用ES服务
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

}
